﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SearchResv.aspx.cs" Inherits="JinJiang.BookingEngine.Web.cn.SearchResv" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="css/hubs1_dfb.css" type="text/css" rel="Stylesheet" />
    <script language="javascript" type="text/javascript" src="JS/resetiframe.js"></script>
</head>
<body id="bodyBooking" runat="server">
    <form id="mainForm" runat="server">
    <table width="100%" cellpadding="0" cellspacing="0">
        <tr>
            <td id="RightContent">
                <div class="Frame">
                    <div class="RightContentTitle">
                        订单搜索</div>
                </div>
                <div id="Div1">
                    <div id="main" runat="server">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td width="700" valign="top" height="550">
                                    <table width="100%" align="center" cellpadding="5" cellspacing="1" bgcolor="#ffffff">
                                        <tbody>
                                            <tr>
                                                <td height="24" bgcolor="#efefef" class="text_titl">
                                                    <span class="STYLE2"><b>搜索订单：</b><asp:Literal runat="server" ID="ltrTip"></asp:Literal></span>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="height: 58px;">
                                                    <table id="tbSearch" runat="server">
                                                        <tr>
                                                            <td>
                                                                预订确认号：
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="txtConfnum" runat="server" MaxLength="20"></asp:TextBox>
                                                                <span id="spanLastName">预订客人姓:<asp:TextBox ID="txtLastname" runat="server" MaxLength="50"></asp:TextBox></span>
                                                            </td>
                                                            <td>
                                                                <input type="button" onclick="SearchResv()" value="订单搜索" />
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                    <script language="javascript" src="JS/loader.js" type="text/javascript"></script>
                                    <div id="ResvTableDiv">
                                        <table class="table_other" cellpadding="3">
                                            <tr>
                                                <td style="width: 964px">
                                                    <span class="font_message">常见问题:</span><br />
                                                    <br />
                                                    Q 我如何改动或取消预订？<br />
                                                    A 如果您需要更改或取消您现有的预订，请在上面输入您的预订确认号，在查找到您的预订详细信息并确认无误后，点击修改或取消按钮。还可以通过联系酒店预订部来协助解决。备注：你一旦更改或取消预订，则将按照该订单的保证金制度缴付额外的更改或取消费用。<br />
                                                    <br />
                                                    Q 我丢失了确认邮件﹐我该怎么办？<br />
                                                    A 请在上面输入您的预订确认号，在查找到您的预订详细信息并确认无误后, 点击重新发送确认信按钮，系统将重发一份确认信给您预订时留下的email信箱。<br />
                                                    <br />
                                                    Q 我如何查看我的酒店预订？<br />
                                                    A 您可以每周7天，每天24小时查看您的现有预订状况。请在上面输入您的预订确认号，查看预订详细信息，在入住信息一栏可以得知您预订单处理的进展。<br />
                                                    <br />
                                                    Q 我的预订号码不见了，我该怎么办？
                                                    <br />
                                                    A 您可以在预订酒店后我们发送给您的电邮中得到您的预订号码。如果您不小心删除了此电邮，请联系我们的客户服务中心。<br />
                                                    <br />
                                                    Q 找不到您的预订号码？
                                                    <br />
                                                    A 您可以在我们发送给您的确认电邮中得到预订号码。确认电邮的画面如下所示。<br />
                                                    <img src="Images/confex.gif"><br />
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                    <br />
                                    <script language="javascript" type="text/javascript" defer="defer">
                                        function ShowMod() {

                                            document.getElementById("BasicInfo").style.display = 'none';
                                            document.getElementById("CxlResvTableDiv").style.display = 'none';
                                            document.getElementById("ModResvTableDiv").style.display = 'block';
                                            fSetOutLinkIframe('<%=domain %>');

                                        }
                                        function ShowCxl() {

                                            document.getElementById("BasicInfo").style.display = 'none';
                                            document.getElementById("ModResvTableDiv").style.display = 'none';
                                            document.getElementById("CxlResvTableDiv").style.display = 'block';

                                            fSetOutLinkIframe('<%=domain %>');
                                        }
                                        function SearchResv() {
                                            var Lastname = document.getElementById("<%=txtLastname.ClientID %>").value;
                                            var confnum = document.getElementById("<%=txtConfnum.ClientID %>").value;
                                            if (confnum == "") {
                                                alert("请输入订单确认号！");
                                                return;
                                            }
                                            JinJiang.BookingEngine.Web.cn.SearchResv.GetSearchRecord(confnum, Lastname, Resv2Table);
                                            var le = document.getElementById("loadErrinfo");
                                            le.style.display = "none";
                                            var lt = document.getElementById("loadTimeoutinfo");
                                            lt.style.display = "none";
                                        }

                                        function Resv2Table(request) {
                                            var str = request.value;
                                            document.getElementById('ResvTableDiv').innerHTML = str;
                                            hideloadinfo();
                                            fSetOutLinkIframe('<%=domain %>');
                                        }


                                        function ModResv() {
                                            var confnum = document.getElementById("<%=txtConfnum.ClientID %>").value;
                                            var firstname = document.getElementById("FirstName").value;
                                            var lastname = document.getElementById("LastName").value;
                                            var GuestAddressLine1 = document.getElementById("GuestAddressLine1").value;
                                            var GuestPhone = document.getElementById("GuestPhone").value;
                                            var GuestEmail = document.getElementById("GuestEmail").value;
                                            var remark = document.getElementById("remark").value + document.getElementById("jjremark").value;
                                            var le = document.getElementById("loadErrinfo");
                                            le.style.display = "none";
                                            var lt = document.getElementById("loadTimeoutinfo");
                                            lt.style.display = "none";
                                            JinJiang.BookingEngine.Web.cn.SearchResv.ModRecord(confnum, firstname, lastname, GuestAddressLine1, GuestPhone, GuestEmail, remark, ModResv2Table, null, hide_show());
                                        }
                                        function ModResv2Table(request) {
                                            var Modstr = request.value;
                                            document.getElementById('ModResvTableDiv').innerHTML = Modstr;
                                            hideloadinfo();

                                        }
                                        function CxlResv() {
                                            //var propertyID=document.getElementById("pid").value;
                                            var confnum = document.getElementById("<%=txtConfnum.ClientID %>").value;
                                            var le = document.getElementById("loadErrinfo");
                                            le.style.display = "none";
                                            var lt = document.getElementById("loadTimeoutinfo");
                                            lt.style.display = "none";
                                            JinJiang.BookingEngine.Web.cn.SearchResv.CxlRecord(confnum, CxlResv2Table, null, hide_show());
                                        }
                                        function CxlResv2Table(request) {
                                            var Cxlstr = request.value;
                                            document.getElementById("CxlResvTableDiv").innerHTML = Cxlstr;
                                            hideloadinfo();

                                        }

                                        function ReSendEmail(type) {
                                            var confnum = document.getElementById("<%=txtConfnum.ClientID %>").value;
                                            var le = document.getElementById("loadErrinfo");
                                            le.style.display = "none";
                                            var lt = document.getElementById("loadTimeoutinfo");
                                            lt.style.display = "none";
                                            JinJiang.BookingEngine.Web.cn.SearchResv.ReSendEmail(confnum, type, ReSendEmail2Table, null, hide_show());
                                        }
                                        function ReSendEmail2Table(request) {
                                            var Mailstr = request.value;
                                            document.getElementById("ResvTableDiv").innerHTML = Mailstr;
                                            hideloadinfo();

                                        }
 
                                    </script>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
